<?php
namespace app\index\validate;
use think\Model;
use think\Validate;
class Category  extends Validate
{
    protected $rule=[
        'sort'=>'require',
        'name'=>'require',
        'p_id'=>'require'
    ];

    protected $message=[
        'sort.require'=>'排序不能为空',
        'name.require'=>'栏目名不能为空',
        'p_id.require'=>'父栏目不能为空',
    ];
}
